<%@ page language="java" pageEncoding="UTF-8"
	contentType="text/html;charset=UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
%>
<!DOCTYPE>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<title>用户支付</title>
</head>
<body>
	<form id="alipaysubmit" name="alipaysubmit"
		action="https://mapi.alipay.com/gateway.do?_input_charset=utf-8"
		method="get">
		<input type="hidden" name="_input_charset" value="${orderinfo._input_charset}" />
		<input type="hidden" name="subject" value="${orderinfo.subject}" />
		<input type="hidden" name="sign" value="${orderinfo.sign}" />
		<input type="hidden" name="notify_url" value="${orderinfo.notify_url}" />
		<input type="hidden"name="body" value="${orderinfo.body}" />
		<input type="hidden" name="payment_type" value="${orderinfo.payment_type}" />
		<input type="hidden" name="out_trade_no" value="${orderinfo.out_trade_no}" />
		<input type="hidden" name="partner" value="${orderinfo.partner}" />
		<input type="hidden" name="service" value="${orderinfo.service}" />
		<input type="hidden" name="total_fee" value="${orderinfo.total_fee}" />
		<input type="hidden" name="return_url" value="${orderinfo.return_url}" />
		<input type="hidden" name="sign_type" value="${orderinfo.sign_type}" />
		<input type="hidden" name="seller_id" value="${orderinfo.seller_id}" />
	</form>


</body>
</html>
<script type="text/javascript">
	if(!${status}){
		alert('设备离线，无法支付');
	}else {
		document.forms['alipaysubmit'].submit();
	}
</script>
